#-------------------------------------------------
#
# Project created by QtCreator 2017-09-11T10:31:19
#
#-------------------------------------------------

QT       += core gui serialport sql network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = elfboard_qt_app
TEMPLATE = app

DEFINES += xHARDWARE_ENCDEC QT_NO_SSL HAVE_CONFIG_H

SOURCES +=\
    libmodbus/modbus-data.c \
    libmodbus/modbus-rtu.c \
    libmodbus/modbus-tcp.c \
    libmodbus/modbus.c \
    libqrencode/bitstream.c \
    libqrencode/mask.c \
    libqrencode/mmask.c \
    libqrencode/mqrspec.c \
    libqrencode/qrencode.c \
    libqrencode/qrinput.c \
    libqrencode/qrspec.c \
    libqrencode/rsecc.c \
    libqrencode/split.c \
    modbus_thread/modbus_master.cpp \
    serial_port/rs485_1_rx_thread.cpp \
    serial_port/rs485_1_tx_thread.cpp \
    user/tuya_iot_kit.cpp \
    user/main.cpp \
    user/welcomewidget.cpp \
    user/my_protocol.cpp \
    user/circle_queue.cpp \
    page1_widget/page1_widget.cpp \
    page1_widget/key_rgb_relay.cpp \
    page2_widget/page2_widget.cpp \
    page2_widget/brightness.cpp \
    page2_widget/temp_humi.cpp \
    page3_widget/page3_widget.cpp \
    page4_widget/page4_widget.cpp \
    page4_widget/reg_dialog.cpp \
    page5_widget/page5_widget.cpp \
    page5_widget/update_dialog.cpp \
    page5_widget/setmaster_dialog.cpp \
    serial_port/serial_port.cpp \
    serial_port/serial_rx_thread.cpp \
    serial_port/serial_tx_thread.cpp \
    user/wifi_connect.cpp

HEADERS  += \
    libmodbus/modbus-private.h \
    libmodbus/modbus-rtu-private.h \
    libmodbus/modbus-rtu.h \
    libmodbus/modbus-tcp-private.h \
    libmodbus/modbus-tcp.h \
    libmodbus/modbus-version.h \
    libmodbus/modbus.h \
    libqrencode/bitstream.h \
    libqrencode/config.h \
    libqrencode/mask.h \
    libqrencode/mmask.h \
    libqrencode/mqrspec.h \
    libqrencode/qrencode.h \
    libqrencode/qrencode_inner.h \
    libqrencode/qrinput.h \
    libqrencode/qrspec.h \
    libqrencode/rsecc.h \
    libqrencode/split.h \
    modbus_thread/modbus_master.h \
    serial_port/rs485_1_rx_thread.h \
    serial_port/rs485_1_tx_thread.h \
    user/tuya_iot_kit.h \
    tuya-connect-kit/include/atop_base.h \
    tuya-connect-kit/include/atop_service.h \
    tuya-connect-kit/include/file_download.h \
    tuya-connect-kit/include/matop_service.h \
    tuya-connect-kit/include/mqtt_bind.h \
    tuya-connect-kit/include/mqtt_service.h \
    tuya-connect-kit/include/tuya_ble_service.h \
    tuya-connect-kit/include/tuya_config_defaults.h \
    tuya-connect-kit/include/tuya_endpoint.h \
    tuya-connect-kit/include/tuya_iot.h \
    tuya-connect-kit/include/tuya_log.h \
    tuya-connect-kit/include/tuya_ota.h \
    tuya-connect-kit/include/tuya_wifi_provisioning.h \
    user/welcomewidget.h \
    user/my_protocol.h \
    user/circle_queue.h \ 
    user/sys_config.h \
    user/wifi_connect.h \
    page1_widget/page1_widget.h \
    page1_widget/key_rgb_relay.h \
    page2_widget/page2_widget.h \
    page2_widget/brightness.h \
    page2_widget/temp_humi.h \
    page3_widget/page3_widget.h \
    page4_widget/page4_widget.h \
    page4_widget/reg_dialog.h \
    page5_widget/page5_widget.h \
    page5_widget/update_dialog.h \
    page5_widget/setmaster_dialog.h \
    serial_port/serial_port.h \
    serial_port/serial_rx_thread.h \
    serial_port/serial_tx_thread.h \

FORMS    += welcomewidget.ui \
    page4_widget/reg_dialog.ui \
    page5_widget/update_dialog.ui \
    page5_widget/setmaster_dialog.ui


RESOURCES += \
    resources/images.qrc

DISTFILES +=

INCLUDEPATH += /opt/fsl-imx-x11/4.1.15-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/include/ \
               /opt/work/elfboard/qt-app/elfboard_qt_app/elfboard_app/libqrencode/ \
               /opt/work/elfboard/qt-app/elfboard_qt_app/elfboard_app/libmodbus/ \
               /opt/work/elfboard/qt-app/elfboard_qt_app/elfboard_app/modbus_thread/


unix:!macx: LIBS += -L$$PWD/lib_qmqtt/lib/ -lQt5Qmqtt

INCLUDEPATH += $$PWD/lib_qmqtt/include
DEPENDPATH += $$PWD/lib_qmqtt/include



unix:!macx: LIBS += -L$$PWD/tuya-connect-kit/ -llink_core

INCLUDEPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

DEPENDPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

unix:!macx: PRE_TARGETDEPS += $$PWD/tuya-connect-kit/liblink_core.a





unix:!macx: LIBS += -L$$PWD/tuya-connect-kit/ -lmiddleware_implementation

INCLUDEPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

DEPENDPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

unix:!macx: PRE_TARGETDEPS += $$PWD/tuya-connect-kit/libmiddleware_implementation.a



unix:!macx: LIBS += -L$$PWD/tuya-connect-kit/ -lplatform_port

INCLUDEPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

DEPENDPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

unix:!macx: PRE_TARGETDEPS += $$PWD/tuya-connect-kit/libplatform_port.a






unix:!macx: LIBS += -L$$PWD/tuya-connect-kit/ -lutils_modules


INCLUDEPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

DEPENDPATH += $$PWD/tuya-connect-kit/include \
                $$PWD/tuya-connect-kit \
                $$PWD/tuya-connect-kit/interface \
                $$PWD/tuya-connect-kit/utils \

unix:!macx: PRE_TARGETDEPS += $$PWD/tuya-connect-kit/libutils_modules.a




